package com.fastloan.mgt.manager.model;

import com.kawins.base.baseabs.BaseModel;

import javax.persistence.*;

@Table(name = "ZY_USER_CARD")
public class UserCard extends BaseModel {
    /**
     * 用户ID
     */
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 银行卡
     */
    @Column(name = "CARD_NUM")
    private String cardNum;

    /**
     * 银行名称
     */
    @Transient
    private String issuer;

    /**
     * 卡片名称
     */
    @Transient
    private String cardName;

    /**
     * 卡类型
     */
    @Transient
    private String cardType;

    public UserCard() {
    }

    public UserCard(String userId, String cardNum) {
        this.userId = userId;
        this.cardNum = cardNum;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    /**
     * 获取用户ID
     *
     * @return USER_ID - 用户ID
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取银行卡
     *
     * @return CARD_NUM - 银行卡
     */
    public String getCardNum() {
        return cardNum;
    }

    /**
     * 设置银行卡
     *
     * @param cardNum 银行卡
     */
    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }
}